<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>面向对象</title>
</head>

<body>

</body>

</html>
<script>
    // 实例化对象
    let person = new Object();
    window.console.log(person);
    window.console.log(typeof person);
    // 属性赋值
    person.nickname = '刘晓兰';
    person.age = 18;
    person.gender = 0;
    window.console.log(person);
    window.console.dir(person);
</script>